﻿namespace common
{
    public class db_factory
    {
        public db_helper db_helper
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public static db_helper get_db(string type)
        {
            if (type == "sqlserver")
            {
                return new sqlserver_helper();
            }
            else if (type == "mysql")
            {
                return new mysql_helper();
            }
            else
            {
                return new sqlserver_helper();
            }
        }
    }
}